<template>
  <view class="empty">
    <view class="balance">
      我的余额:<text>0</text> 钻石: <text class="iconfont icon-jinbi"></text>
    </view>

    <u-empty mode="permission" text="由于相关内容,ios功能暂不可用" icon="http://cdn.uviewui.com/uview/empty/permission.png">
    </u-empty>
  </view>
</template>

<script>
export default {
  data() {
    return {
      sort: null,
      videoID: null

    }
  },
  onLoad({ sort, videoID }) {
    this.sort = sort
    this.videoID = videoID

  },
  created() { },
  methods: {
    leftClick() {
      let pages = getCurrentPages() //获取页面栈
      let prevPage = pages[pages.length - 2].route //上一个页面
      if (prevPage === 'pages/user/user') {
        uni.switchTab({ url: '/pages/user/user' })
      }
      uni.navigateTo({
        url: `/${prevPage}?iosPage=${true}&sort=${this.sort}&video_id=${this.videoID}`,
      })
    },
  },
}
</script>
<style lang="scss" scoped>
.empty {
  width: 100%;
  height: 100vh;
  padding: 30rpx 20rpx;
  background-color: #e2e2e2;

  .balance {
    padding-top: 50rpx;
  }

  text {
    color: #ee7e41;
    margin: 0 25rpx 0 10rpx;
  }
}
</style>
